<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>背景平铺</title>
    <style>
        /*
        属性名：backfround-repeat(bgr)
        取值            效果
        repeat         （默认值）水平和垂直方向都平铺
        no-repeat       不平铺
        repeat-x        沿着水平方向（x轴）平铺
        repeat-y        沿着垂直方向（y轴）平铺
         */
        div {
            width: 400px;
            height: 400px;
            background-color: pink;
            background-image: url(./images/1.jpg);
            /* background-repeat: repeat; */
            /* 不平铺: 图片只显示一个 */
            /* background-repeat: no-repeat; */
            /* background-repeat: repeat-x; */
            background-repeat: repeat-y;
        }
    </style>
</head>
<body>
<div>文字</div>
</body>
</html>